package commands;

import clientRequest.ClientRequest;
import controller.ExecutorsManager;
import controller.ExecutorsManager.DeleteFolderExecutor;

/**
 * class DeleteFolderCommand - execute delete folder command
 */
public class DeleteFolderCommand {
	DeleteFolderExecutor deleteFolderExecutor = ExecutorsManager.getInstance().getDeleteFolderExecutor();
	
	/**
	 * constructor
	 */
	public DeleteFolderCommand(){}

	/**
	 * delete the user folder
	 * @param clientRequest - a client request that contains the folder details
	 * @return 1
	 */
	public int action(ClientRequest clientRequest) 
	{
		// TODO Auto-generated method stub
		System.out.println("delete folder command");
		return deleteFolderExecutor.addRequest(clientRequest.getUserID(), clientRequest.getFileName());				
	}

}
